Api.WriteAxisOutputBit method
Writes a bit into an output of a real or simulated axis.
Namespace: IntervalZero.KINGSTAR.OpcUa.Api
Assembly: IntervalZero.KINGSTAR.OpcUa.Api (in IntervalZero.KINGSTAR.OpcUa.Client.dll) Version: 4.5.0.0
Syntax
public KsError WriteAxisOutputBit(
int Index,
int BitOffset,
bool Value
)
Public Function WriteAxisOutputBit(
Index As Integer,
BitOffset As Integer,
Value As Boolean
) As KsError
Parameters
Index
Type: int
The index of an axis. Indexes are zero based. Aliases affect this parameter.
BitOffset
Type: int
Specifies a bit offset to the location to write a bit value. The max offset is determined by OutputLength in the SlaveStatus class.
Value
Type: bool
A value to write. true writes one (1) and false writes zero (0).
Return value
Type: KsError
A return code of a method.
Remarks
WriteAxisOutputBit can only be called once a link is established and started.
Usable EtherCAT states
ecatOP
Examples
N/A
See also